RX doesn't work on ESP8266-E12 AI

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.

...R