Changed updateSensors so it doesn't make a new sensor everytime.