my previous problem solved..

do you have an ides how to program using sensor as input? That when it is high something would activate then when it is low still activate.