There is no "official" or built-in YF-S201 component in the default Proteus library
Before we discuss simulation, let us analyze the sensor’s working principle. yf-s201 proteus library
: It allows you to verify your code's pulse-to-liter conversion logic (typically 450 pulses per liter for the YF-S201). There is no "official" or built-in YF-S201 component