The document describes a method for automatic projector calibration using embedded light sensors. The approach embeds light sensors into the target projection surface to detect gray code patterns projected by the projector. By analyzing the detected patterns with the sensors, the system can automatically calibrate the projector without any external cameras. The calibration process is fast, robust, accurate, and scalable to different projection surfaces and setups.