This is the source code from my washing machine monitor using an Adafruit Hazzah and a pair of LIS3DH accel modules
This project is based off of this project
To get the Arduino environment to work in NixOS run the following command:
nix-shell https://github.com/nix-community/nix-environments/archive/master.tar.gz -A arduino