Door Sensor Problem


I have made a update for the vision app. I have 2 doorsensor ZD2102-5. Sometimes the sensor is slow or doesnt send a message to homey. Can anyone help me to solve this. Maybe change the code that i have.
I have to close and open the door a couple of times before it changes thats closed or opened.

ProcessSendData[1089]: To node: 24 with data: 0x988032f8818c5f5ed279 and txOptions: AUTO_ROUTE,EXPLORE

Had the same problem. Turned out the battery of the sensor was empty. (not with that sensor in particular though but with z-wave contact sensor)