LDR measuring Luminous intensity in candela

first of all as the code description mentions, it code it not suitable for arduino uno. the best thing right now is to change you arduino uno to mega if possible or get an ethernet shield for your arduino UNo.
though if you want to continue using there are some topics in which people have got it working.

  1. power your esp8266 with separate power supply.
  2. Follow steps from this post Temperature measurement - #63 by fmarkovich