cannot seem to set up analog read variables in setup()

wow me to i thought for a sec somethig was wrong with my browser.
We got to see some code to give u much help.
why does your loops/ and configuration have to run in setup.
could create a initialize/config function u call useing an if statment and is never called until reset in loop. try moveing it around.
or u dont need afunction

if (setRangeAlreadyRun == False){
//check you max /min values and get it all set here

setrange.... = true;
}

//then run your other code
reserve setup for initialize var nameing etc.
i think it works better but not alwasy obviously.
but if what u did doesnt work try something like that