Updates accelerometer to work with new Pin EventListener API