Seeed xiao esp32 c3 dht22

Ok, I found my mistake. I have been coding for Arduino for many years and just expected the same formatting rules to apply to XIAO. WRONG!! The pin declaration for Arduino is just the pin number, but it appears the pin number for the SEEED includes an aphanumeric. So where I was using 2 as the value of the pin variable, it should have been D2. Once I made that change all is good. Makes an old programmer feel really dumb. Guess I’ll read the documentation in the future!!!

1 Like