Combining codes for voltage sensor & push notification

Hello!

I am an agroecology student looking to make a low-voltage alert system using an Arduino. I’m aware that there are products out there that does this sort of thing, but my professor would like my group to create this system using a microcontroller as a learning opportunity.

The basic idea is that I want a voltage sensor module and Arduino to read to voltage from an electric fence (1000-2000V). When the voltage falls below a threshold (e.g. 900V), I would like the Arduino to send a push notification via an ESP 8266 to the farmer’s phone.

I’ve found some script that seems relevant to my project, but I’m not sure how to combine them together (I don’t have any background in programming). There are 4 different scripts for a voltage monitor, and 2 scripts for push notifications. [Dropbox folder to codes]

Here's a concept diagram of how I imagine the system would work

Thanks!

If you want someone to write the code for you, click the Report To Moderator link below the text box in your post, and ask that your post be moved to Gigs and Collaboration. Then, go there, and add a reply, stating how much you will pay to have someone do your work for you.

Please include your professor's contact information, so that the person that does the work for you can let the professor know what a good grade is worth.

If YOU are going to do the work, take a stab at creating a sketch that does what YOU want, not what some other people have already done. If that doesn't work, post the code HERE, not in the trash box, and explain what it actually does, and how that differs from what you want.

It is NOT at all difficult, with suitable hardware, to do what you want. You will NOT be connecting the electric fence directly to the Arduino, unless you want to send smoke signals.

Start by turning on an LED in response to a push-button. Then, code the voltage sensor in place of the push-button. Then code the push notification in place of the LED.