IR is widely used in remoter control. With this IR receiver, the Arduino project is able to receive command from any IR remoter controller if you have the right decoder.
This IR sensor works at 5V where as the D1 Mini seems to work primarily at 3.3V. You might want to try something like this TSOP38238 IR sensor that will be capable of working with that board.