Gawan wrote:I am afraid that I am not using the right SDA and SCL ports on my NodeMCU.
On the internet I found:
- SDA/SCL are GPIO2/ GPIO0
This is Pin3 and Pin4 on my NodeMCU - does not work
No, SDA is GPIO4 and SCL is GPIO5 on Nodemcu, ie. SDA == pin D2 and SCL == pin D1 on the board. You have connected your pins wrong. Also, as others have said you can just use Wire.begin(pin_you_want_as_sda, pin_you_want_as_scl) to use any other two pins, like e.g. Wire.begin(4, 5) or Wire.begin(D2, D1).