Create event_sensor.rb