Added analog  input for ambient light