Upload the following basic code to your Proteus Arduino block via the hex file path:
Newer library updates for Proteus (2024/2025) offer enhanced features that go beyond basic measurement: voltage sensor proteus library upd