Able to read a flex sensor that is utilizing an I/O Digital pin rather than an Analog Pin. This is using the RCtime() mentioned in https://www.arduino.cc/en/Tutorial/RCtime

Main challenge here was simply to utilize a digital pin rather than an analog pin. The reason I did this is because for my current project, I see myself needing to use digital pins later on, therefore, just wanted to learn how to do it early in the project rather than later.

 

Use the code in the following link:

 

https://www.arduino.cc/en/Tutorial/RCtime