Hi @enito
Pin 6 (GPIO6) is not D6. Pin 6 does not exist on Wemos D1 R1. D6 is the GPIO12
See the tables below.
RV mineirim