Sensor Subroutines

There are four subroutines in this section:

1. SensHum. This must be run before SensInit, at power up, but after a delay. All sensor operations start with a register address byte. This data byte sets for 8 times oversampling.
2. SensInit. The data byte sets for continuous autonomous operation and 8 times oversampling.
3. GetSens. Incoming data go into memory. The command byte addresses the address of the register of the MS byte of the pressure. The sensor continues sending data bytes of seven subsequent registers so long as clock pulses are sent and chip select is low.
This sensor allows reading at anytime without data corruption.
Picaxe does not offer a SHIFTIN command for the 18M2.
4.SensConv. This combines two bytes into a word. The Picaxe peek command is invalid here sibce the byte order is reversed..