• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.
    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Python notification to mobile phone

joshchad

New Coder
Feb 25, 2020
3
1
1
is there a way to program so that when a sensor is tripped, it sends my phone an email or something?
 

Krusty the Senile

Active Coder
Jun 26, 2019
108
29
28
What kind of sensor? What kind of setup are you thinking of?

I'm guessing sensor = light, some sort of electrical switch. This in turn would be hooked to something line an Arduino or Raspberry Pi, which could then send a message to a device of choice.
 

joshchad

New Coder
Feb 25, 2020
3
1
1
hello, yes sorry i didn't have access to my laptop for a few days. its a laser light sensor. i have both a raspberry pi and an arduino board, but i don't really know where to start.
 

Krusty the Senile

Active Coder
Jun 26, 2019
108
29
28
Do you have a datasheet/manual for the sensor? Can you tell us the part number?

Depending on the requirements of the sensor, you should be able to hook it up to either arduino or rpi. Depending on which one you choose, you can just start by making sure that you're getting data from the sensor. I should be able to help you more if you post data about the sensor part number here.