Measure it, put it on, run it check oil pressure if any doubt about the oil pressure bin it and put a new one on. Ofcourse don't let it run too long if you doubt the pressure. There are a lot of topics about oil pressure at idle when hot.
Don't trust a electrical sensor, go for the mechanical onces