updated check for sensors