I want to detect solenoid ON and OFF state.
If solenoid ON, with respect to HIGH signal no problem.
If solenoid not working means with respect to HIGH signal, solenoid remains OFF state. In that situation I have to generate HIGH or LOW signal.
So I designed a circuit with XOX gate attached here...