Recipes created on IFTTT send information between applications and Gmail and Spark.
Spark code writes a function to the cloud.
When Spark sees an unread email, it flashes the appropriate light, then stays on .
A second Spark function turns the lights off if the email is no longer marked "unread."