programming different sensors

The OP would do well with using the autoformat feature of the Arduino IDE to find little buggie-boo's like the one posted abvoe.