Explanation is in the code. "Resistive Sensors" examples include Photocells (light sensor), Flex sensors, Thermistors (temperature reading).
' This example can be used to read a resistive sensor (a sensor that acts like a resistor) on a digital pin by using a capacitor.
' The basic concept is...