Added error/success messages when getting accelerometer