Implemented several sensors and thresholds.