Added a class to interface between the arduino and the UI