Based off of keiichishima RPiSensors. Designed for python3