The light sensor is not included in the MagTag library. It should be added as it is a feature on the board.