Analog in; tracking changes with variables
Beginning with a simple potentiometer connected to analog pin 0, I was able to variably dim an LED:
Next I used the photo sensor instead mapping the sensor value so that the LED would be at full brightness when the sensor was exposed to light and off in shadow.


Finally I decided to use the force sensor but mapped it incrementally to 3 different LED’s so that each would turn on in succession as I squeezed the sensor harder:




