You’re causing a conflict with Edgent, as GPIO0 (D3) and GPIO2 (D4) are used in Settings.h
You should read this…
You’d also do yourself a favour if you used the correct translation between GPIO numbers and D numbers.
Also, when you post serial monitor output please copy the text and paste it between triple backticks rather than posting screenshots.
The garbage in your serial monitor would be eliminated if you used 74880 as your serial baud rate.