added constants for sensor ids and modes to lua