I tried to use the example->analog->calibration.
I wanted to make my LED to dim by using photoresistors.
Like when i enter calibration mode while holding down the button, it should indicate a bright yellow light. I also determined min and max values for the sensors readings...
i tried with this code but doesnt work: https://pastebin.com/frJS1jy6
If you want help on the rubbish bin site, post your question there.
If you want help here, post your code HERE in code tags!
"it doesn't work" tells us NOTHING. The code does SOMETHING. Tell us what it actually does.
You expect it to do something. "calibrate a sensor" doesn't tell us near enough.
In other words read the instructions for how to post here in the sticky threads, then we won't be
wasting everyone's time...