An optical sensor for measuring the moisture level of clay has been realized by a couple of telecommunications lasers at 1300 and 1550 nm. The sensor can operate directly during building material production. The measurement principle is based on the measurement of the optical reflection at different wavelengths in the infrared region. Custom low-noise electronics allows rejecting disturbances of ambient light, and a digital processing makes the system independent on the clay distance. By means of a proper calibration, the sensor can monitor the moisture level during brick production, without moving parts or optical filters.