Added sensor/user-defined range check