AC two-wire sensor