I'm trying to use analog inputs to read digital values, but I'm obviously doing something wrong. I'm using some optical sensors that range from about 25 to 230 when I use analogRead(). However, when I use digitalRead() on the same inputs, I only get a return of 0 and never 1. I've tried labeling my analog inputs as A0-A5 as well as 14-19, but it doesn't seem to make a difference.
I'm guessing this is a simple fix, but I haven't been able to find anything on this issue. Any advice is much appreciated.