Here's an example simulation using the updated voltage sensor library:

This article provides a comprehensive guide on what the voltage sensor module is, why standard Proteus libraries fail, and how to perform a successful to get your simulation running perfectly.

The goal is to map the input voltage range ($V_in$) to the microcontroller’s measurable range ($V_ref$, typically 0V–5V or 0V–3.3V).