https://tutorials-raspberrypi.com/mcp3008-read-out-analog-signals-on-the-raspberry-pi/