Rewrote python code from scratch and added arduino sketch