check if sensor data is empty and set zero hook