Fixed bug in displaying the latest sensor value