Added sensor reading in a dialog box