Removed the indefinite loop checking for sensors