I'm very new to this, but I managed to set up my 2 D1 mini's. I flashed them with the ESPEasy_R120_4096.bin and after that I connected them to my WiFi.
Now there are 2 things I like to do:
1. connect 1 with the TCRT5000 pulse meter, but I can't find a n00b section where this is explained. I need to know which connection on the D1 mini I have to connect to the TCRT5000 exactly so I don't break the devices
2. connect the other with a BH1750 lux meter. Same applies here: what connections do I have to use on the D1 mini to connect to the BH1750
I tried searching the forum, but it looks like everybody is way ahead of me

After this I want to be able to use both in my Domoticz setup.
Edit: I've managed to get the BH1750 to work. Values are sent to Domoticz, so that's OK.
Now the TCRT5000..... I've connected it like this:
TCR5000: VCC -> ESP: 3V3
TCR5000: GND -> ESP: G
TCR5000: D0 -> ESP: D4 (=GPIO2)
Tried several other GPIO's, nothing happens.
The settings in the webgui of the ESP Easy:
Delay: 1
1st GPIO: GPIO2
Debounce Time: 1
Counter Type: Delta
Formula Count: %value%/4
Pin mode 2: default
What am I doing wrong here....?