This the sensor we are going to build in this exercise.

We will need the following hardwares:
A Particle Photon, it will work with Argon too (Can be bought here)
USB Data Cable
Wind Sensor Rev.P (Can be bought here)
Jumper Wires x 4 (Can be bought here)
Breadboard (Can be bought here)
12V Power Adapter (Can be bought here)
Female DC Power Adapter (Can be bought here)
Soldering Kit (Can be bought here)
Laptop or Computer
Connect the Argon, Wind Sensor and 12V power onto the breadboard as shown in the figures.
Connect the Wind Sensor Rev P as follows
Wind Sensor <---> Argon/ Power Adapter GND <----------------> Argon (GND) | |-----------> Power Adapter (-) +9-12V <-----------------> Power Adapter (+) OUT <----------------> Argon (A0) TMP <----------------> Argon (A1)
Refer to to register the Argon Device with our Particle account.
Flash the script ‘STAPI_1_WIND_REVP’ to the Argon. Fill in the mandatory parameters accordingly. You can choose to leave the optional parameters to their default values.
============================================================================================= !!! MANDATORY PARAMETERS ============================================================================================= const int OutPin = A0; // wind sensor analog pin hooked up to Wind P sensor "OUT" pin const int TempPin = A1; // temp sesnsor analog pin hooked up to Wind P sensor "TMP" pin String thingDesc = "windrev-p"; //DESCRIBE THE DEPLOYMENT int sample_rate = 10 * 1000; // how often you want device to publish where the number in front of a thousand is the seconds you want ============================================================================================= OPTIONAL PARAMETERS (this parameters only works when it is the first time registration of the device) (if the device is already registered, these options are ignored) ============================================================================================= //Description of the location String foiName = "na"; //THE LOCATION NAME String foiDesc = "na"; String locType = "Point"; String enType = "application/vnd.geo+json"; //Define the location of the thing. If location is not impt, use [0,0,0] the null island position. float coordx = 0.0; //lon/x float coordy = 0.0; //lat/y float coordz = 0.0; //elv/z