added border and margin to sensor display
bug fixes in displaying sensor data