Current Sensing Smart Switch Controller using a ACS712 sensor or Current Transformer (CT) to detect AC current. Used to switch a secondary AC outlet on/off when it detects the primary outlet is in use (ie, has current flowing through it).
This code accompanies the blog article at the Arduino++ blog