Adding 2 switches to D1 Mini Pro

First, read this: How to ask a question

Second, post code in code tags (see How to ask a question).

Last, are you in the right forums? The garbled code you posted is Arduino, C++.