Add scale factor calculation in data input script.
Add a lower limit to sensor.