I want to share a variable between two already running scripts. Or even spit string from one script to another.
script_1.py:
sensor_status = "Nobody"
while 1:
sensor_status = arduino.get_sensor_status()
sleep(5)
script_2.py:
sensor_status = # realtime value from script_1
while 1:
if sensor_status == "Nobody":
pass
else:
alarm()