Added code to set light_threshold based on max initial RC time

light_threshold is now set in setup function instead of at the top. Hopefully the threshold is high enough...code written without having hardware for testing.