Implemented DAO for Sensor and its test cases