jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
min is initialized to 0 in the beginning. So, 0 is the minimum value. Don't initialize min or initialize it to max value you can get. Initialize it to 10000 if your adc values doesn't exceed 10000.