Monitoring the current taken by a mains-powered appliance can be a challenge, particularly if the application demands an inexpensive solution that must provide galvanic isolation for user safety.