updated controls to include photodiode