Add condititonal to output of sensor values