ESP8266 Wemos D1 Mini

May be in need of a capacitor (0.1uF from the input/sw pin to Ground).

PE - that's what it took here (see last 4, 5 posts)
Wemos D1 clone: digitalRead is unreliable - Using Arduino / General Electronics - Arduino Forum
"We" used a stronger Pull-up, but the caps set things right. I would have asked that he try with the added pull-ups removed, but left "well-enough" alone.