Confused how to communicate esp8266 12e with arduino nano

but still cannot find a good code

You need to write some.

if anybody please can supply the code i would be vey grateful

PM me with an e-mail address and I send you some code. It drives a laser projector, but that shouldn't matter, because you don't have any real requirements.