Update sensor.rb