Added code to print out the sensor results to the terminal.