Electronic iris mechanism with light sensor