Create Sensor Data Rule class