if (anHeight>analogRead(an)>anLow){
Ok thank you for the adveices, I will coretct the fails, but now i don't know how can I measure the 0 volt (standby state of alarm zone response led)
It works like this too.. But not this is the question.