Programming a photocell with if/else and analogWrite