Properly import arduino's API to the project and read the accelerometer