Hai,
I am a beginner. I need to control pi which is in college from my home through internet. My pi is connected to a sensor and one relay and one wifi module to connect with internet. I need to control a relay by seeing the sensor information on the web application which must be accessible through web browser from home. Can anyone help me with sample code for the same for both web application and r pi python code. Please find the image attachment.