Add Sensor validations

- Add some Sensor validations
- Add some test cases for Sensor