change to destroy and update by sensor_id