Hi there.
I am M.E. (Electronics and Communication Engineering) and I have 7 years of teaching experience to UG and PG students. My specialized subjects are Microcontrollers, Microprocessors and Embedded Systems. I have guided many UG and PG students in their final year projects and dissertations based on embedded systems, especially, 8051, AVR, Arduino and PIC. I have also worked on esp8266 module interfacing with Arduino and Raspberry Pi. I own Arduino, Raspberry Pi and esp8266 modules on which I work regularly. As per your requirement, I can make the code.