Sounds like a low oil cutoff switch.
You just have to run a wire to the tab and then to the ignition coil ground connector.
(when you turn the key off it kills the engine, same circuit)
When the sensor detects low oil, it kills spark (actually most of the spark), enough
to turn off the engine.
.