Get Time Series Data from a GPIO Device
Configure GPIO pin 17 on a Raspberry Pi for input.
Attach a resistor to a bread board and connect one of its terminals to a voltage source and the other terminal to the GPIO input pin. Verify a digital high on the GPIO pin 17.
Disconnecting the power source gives a digital low on pin 17.
Record a time series of high and low states for 10 seconds at 0.1-second intervals by alternately connecting and disconnecting the power cable.