This is the most accurate way to simulate the sensor's digital output. Since the sensor outputs a frequency, we can use a digital clock source to mimic the pulses.
Water flowing through the sensor spins an internal turbine wheel equipped with a magnet. A Hall-effect sensor detects this magnet passing by with every rotation.
Many electronics hobbyists and developers have created custom .IDX and .LIB files for sensors like the YF-S201.
This file is usually located in the same folder where you downloaded the library. Without this file, the sensor will not provide an output signal during simulation. 4. Circuit Interfacing is a Hall-effect sensor with three pins: : Connect to +5V. GND : Connect to Ground.