const int DATEN_CMD = 0; // D3
const int DATA = 2; //D4
The problem is not so much that you want to use them as an input, but you have to make sure that neither of these 2 pins (as well as pin GPIO 1) can be pulled 'LOW' at boot. That means that also if you use them as an output, you will need to make them 'active LOW'.