Industrial IoT using TDS (Total Dissolved Solids) Water Quality sensor with
Node MCU with LCD display with Blynk and Thingspeak

Total Dissolved Solids (TDS) is a measure of the combined content of all contaminants contained in drinking water. A standard definition for “dissolved solids” is that they must be small enough to pass through a 2 micron filter. Contaminants larger than 2 microns are often referred to as Total Suspended Solids.
Total Dissolved Solids are classified by the EPA as a Secondary Contaminant. As a whole, they are considered more of a nuisance than a threat. Certain individual water contaminants that contribute to the Total Dissolved level, however, may pose long term health risks if they exceed certain levels.

Where Do Total Dissolved Solids Come From?

As water travels over the surface of the land or through the ground, it dissolves naturally occurring minerals and, in some cases, radioactive material. Water can also pick up substances from animals or human activity like industry and agriculture.
A TDS meter indicates the total dissolved solids like salts, minerals, and metals, in a solution. This parameter can be used to give you an idea of water quality and compare water from different sources. As the number of dissolved solids in the water increases, the conductivity of the water increases, and that allow us to calculate the total dissolved solids in ppm (mg/L).
Although this is a good indicator to monitor the quality of the water, note that it does not measure contaminants in the water. Thus, you can’t rely solely on this indicator to determine if the water is good for consumption or not.
The sensor has three pins of which two pins VCC and GND shall be connected to 3.3 volts DC and ground of Node MCU. Then there is output voltage available from sensor which shall be connected to Analog Pin ADC0 of Node MCU board which will compute the total dissolved solids and express on LCD display as ppm. Then there are three Node MCU pins viz., Pin GPIO2 connected to Green LED, Pin GPIO3 connected to Red LED, Pin GPIO4 connected to Buzzer. Green LED indicates the Node MCU powered on, Red LED and Buzzer switches on whenever the TDS is more than certain set value.