I like it! It works well. I tried adding a "setTimeout('fetch()', 1000) to make it ping repeatedly but no luck. I suppose I should include the rest of my web page code. I have no idea how to implement the responses from the server and make it populate into where I would want them. It's all written in AJAX which I dont understand but connected the dots to make it work. I'm also in process of switching over to the Due. It's currently running fine but no sensors are connected and I'll have to modify the proto shield to include a transistor to drive the relay. I also switched the connection type to close and it works fine.
Heres the web page code, modified: