Page 162 - Programming the Photon Getting Started With the Internet of Things
P. 162
analog pin range from 0 to 4095.
Now that we have everything set up on our Photon board, we can go ahead and create
a new recipe on our IFTTT account by clicking the Create A New Recipe icon as shown in
Figure 8.2.
Figure 8.2 Creating a new IFTTT recipe.
You will be presented with a screen that shows the words “if this then that” with “this”
underlined as a hyperlink. This gives us an indication that we need to define what “this” is
by clicking the hyperlink. We can then set a trigger, which will determine how we run our
recipe. We know that when a light is shone on the photocell we want to trigger an e-mail
to say something. The next screen takes you to a long list of icons from a wide variety of
Web services, which we can select to act as a trigger. Scroll down the list until you see the
Particle logo, or alternatively you can use the search box and type “particle,” which will
show the Particle app as seen in Figure 8.3.