• HC-SR501 datasheet describes output as "TTL output: 3.3V, 0V" so try a D pin like NodeMCU.D1

About

Avatar for MaBe @MaBe started