I am using the POLLWAIT command to wait for a sensor response.
Code is attached below
It works erratically. Sometimes it waits for the sensor response other times it continued as if it received a high state.
I have scope on the pin. Scope shows low and program continues as if it received a high signal.