This was posted in Dutch firts, so now a translated version (also the answer from Robert):
I’ve been digging into Arduino for a few days and into Homey since yesterday. Clearly a beginner, but I’m glad that there is already quite a lot that works: Arduino linked to ESP8266WiFi module and linked it to Homey using standard code. Now I have started the next project and that is that I want to control LEDs from a Homey flow. I used the code of plant waterer from github and modified it to make it work with wifi shield instead of ethernet:
That went well, in the serial monitor can read what I should see: if I indicate via a homey flow that the pump will pump for 5 seconds (it writes pump started 5,4,3,2,1, etc) but I did not get the pump ( test LED lamp) to work on port 2 of the Arduino board. After a few hours of struggeling, I found out that I was controlling port 2 on the ESP8266. When cable is connected to this device my LED goes on for 5 seconds when I start the flow with value 5.
On the ESP8266 there are only 2 ports and I would like to control several LEDs from a flow. Can someone explain to me how that works? Please help me with sample code that I should upload so that I can use the ports on the arduino.
I have attached a picture and shared code via drive doc: