A few other notes:
Reference voltage to that sensor shouldn't be 12v, it should be more like 5v.
Is your oil level low, is your oil dirty/sludged, is the engine dirty/sludged? That could cause it.
If you've got continuity from that sensor to the correct pin on the ECU, and the other pin on the sensor harness has continuity to ground, it's probably the switch.