Navigate to the library folder on your computer. The location depends on your version of Proteus:
Exclusive Guide: Using the YF-S201 Water Flow Sensor in Proteus The Go to product viewer dialog for this item.
Close and reopen Proteus ISIS.
const int sensorPin = 2; volatile long pulseCount = 0; float flowRate = 0.0; unsigned int flowMilliLitres = 0; unsigned long totalMilliLitres = 0; unsigned long oldTime = 0; void pulseCounter() pulseCount++; void setup() Serial.begin(9600); pinMode(sensorPin, INPUT_PULLUP); // Interrupt 0 is tied to digital pin 2 attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); void loop() if((millis() - oldTime) > 1000) Total: "); Serial.print(totalMilliLitres); Serial.println(" mL"); pulseCount = 0; attachInterrupt(digitalPinToInterrupt(sensorPin), pulseCounter, FALLING); Use code with caution. Troubleshooting Simulation Errors
High-quality exclusive libraries bundle the ARES PCB footprint along with the ISIS schematic symbol, allowing you to transition smoothly from simulation to hardware manufacturing. How to Install the YF-S201 Library in Proteus yfs201 proteus library exclusive
In a physical prototype, this is straightforward. But in Proteus simulation software, a problem arises:
To create an exclusive, dedicated component: Navigate to the library folder on your computer
Adding custom libraries to Proteus is a straightforward process involving file placement. Follow these steps to install your exclusive files: Step 1: Download the Library Files