Adding a lower limit and scale factor (calibration)

I've made some small additions in order to get my system working correctly. This could be a starting point to solving Issue #6 . Please review and comment.