The AmbientLightSensor library for Processing, provides an interface to the Ambient Light Sensor in MacBook Pro models. It was originally developed by Martin Rädlinger. The library hasn't been updated in a very long time and may no longer function on newer systems. The repository is now parked under the Processing Foundation GitHub org, awaiting a new maintainer to revive and update it. Comment below if you're interested in taking on this role!