The presence of illicit discharges in sewerage systems generates an important impact in wastewater treatment plants and the ecosystem. In this paper, we present two prototypes for monitoring the presence of solids in wastewater and to study the effect of the water height. The prototypes are based on color and infrared LEDs and two photosensors located in the prototypes at 0° and 180° degrees. When the photosensor is located at 180°, all color LEDs present a good range of output voltage (approximately 5 V to 0 V) and good R2. However, for the typical concentration of solids in wastewater, the prototypes do not work correctly. When the photosensor is located in the prototypes the LEDs, yellow, red, and white have a good operation with voltage differences of 1.73 V, 1.76 V, and 1.13 V in P1 and 1.58 V, 1.84 V, and 1.35 V in P2, respectively. We calculate the mathematical model with the heights and solid concentration. The mathematical models which do not consider height present good R2. In conclusion, when the photosensor is located in the prototype, the height does not have an important effect and can detect the illicit discharge of solids. When the photosensor is located at 180°, it can be used for water with important changes in solid concentrations.