Bad sensor or bad gauge?

Aftermarket autometer. Factory gauge bit the dust so I’ve been relying on this one. I need to fix the OEM gauge but that doesn’t seem like a quick project.
If the gauge drops when you unplug the sensor, it seems it would have to be a sensor issue.