XIAO ESP32-C3 ESP and SW-420 Vibration Sensor

Sorry for the delay in reply. It seems that my Arduino IDE may have been to old or damaged. After refreshing the install of the Arduino IDE was able to compile and load the code you provide. Thanks for your help.