I'm having a problem with a project. I need to do a detection system which uses python to communicate with electronic devices. I'm creating a detection system. The problem is that I want to detect and then send to a php file which serves as my user interface.
Python:
if led is on, send on to php,
if led is off, send off to php,
PHP:
display [value receive from python]