added scaling for booleans and tidied code
added correct display for boolean values on sensor display