This code for Arduino collects raw accelerometer data and calculates roll and pitch