Determine valve handle position

A microswitch that is closed when the valve is closed, in series with a switch that is closed when the engine is running, powering a lamp, seems to be all you need. How to arrange the 'engine running' switch is a question only you can answer, but it does not seem likely to be difficult.