// Convert back to input voltage. // If using a standard module with a divider factor of 5 (approx) // You must adjust this factor based on the specific library specs. // Many standard Proteus models divide by 5. float actualVoltage = pinVoltage * 5.0;