The large diff is just due to the extra tab I put to fit sensorview main loop inside a function.