A soil moisture sensor is used to measure the amount of moisture in soil and other similar materials. The sensor works by using two large metal pads as probes, which function as a variable resistor. When the soil is wet, the conductivity between the pads increases, resulting in a lower resistance and higher output signal. To use the sensor, connect the power and ground pins to a microcontroller or development board and read the output signal, which will indicate the moisture level in the soil. To extend the lifespan of the sensor in a moist environment, it is recommended to have the circuit board coated with a protective layer such as electroless nickel immersion gold (ENIG). Connections can be made to the sensor using screw pin terminals or jumper wires.