Adding Hardware code for sensor and controller