user75990: I Took a output from ESP8266 and Connected it with Arduino Nano Analog input A0
i use BLYNK app to on/off D0 pin in ESP8266 , and i connected ESP8266 D0 pin with Arduino Nano A0 analogPin.
when esp8266 D0 in high state , the analogRead value in arduino nano serial monitor it show the value 395.
why not 1023 on high state .

user4143: There are two problems here - one immediate and one which will be come apparent.
First off, you appear not to have connected the ground pins of the two boards together. This is important. Voltage is not an absolute value, it's a value relative to some other point in the circuit. This is why "voltage" is sometimes called "potential difference". Normally the point in the circuit that voltages are referenced to is termed "ground". Note: there is nothing special about ground, it's just an arbitrary point in the circuit - usually, but not always, the point where the voltage is lowest.  If the ground of the Arduino that it's using to compare incoming voltages against is not the same as the ground that the ESP8266 is using to create its output voltage in relation to, then the Arduino really can't know what the voltage is.
You can think of it as a person standing on the ground. Now I am about 6 feet tall. When I am stood up the top of my head is about 6 feet above the ground. But to someone who is stood on a nearby rise in the ground my head is only maybe 3 feet above the ground. Their ground is not the same as my ground.
The second problem, which will become apparent once you have connected the grounds, is that the Arduino measures voltages between 0 and 5V as values between 0 and 1023. However the ESP8266 doesn't operate at 5V, it operates at 3.3V. The highest voltage it can ever put out is 3.3V. The Arduino can never read that as 1023 because it's not 5V.  Instead it will read somewhere around 675. That is, 3.3V is two thirds of 5V, and 675 is two thirds of 1023.

75990: <p><strong>I Took a output from ESP8266 and Connected it with Arduino Nano Analog input A0</strong></p>
<p>i use BLYNK app to on/off D0 pin in ESP8266 , and i connected ESP8266 D0 pin with Arduino Nano A0 analogPin.</p>
<p>when esp8266 D0 in high state , the analogRead value in arduino nano serial monitor it show the value 395.</p>
<p>why not 1023 on high state .<a href="https://i.stack.imgur.com/BX00g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BX00g.png" alt="enter image description here" /></a></p>
 4143: <p>There are two problems here - one immediate and one which will be come apparent.</p>
<p>First off, you appear not to have connected the ground pins of the two boards together. This is important. Voltage is not an absolute value, it's a value <em>relative to some other point in the circuit</em>. This is why &quot;voltage&quot; is sometimes called &quot;potential <em>difference</em>&quot;. Normally the point in the circuit that voltages are referenced to is termed &quot;ground&quot;. Note: there is nothing special about ground, it's just an arbitrary point in the circuit - usually, but not always, the point where the voltage is lowest.  If the ground of the Arduino that it's using to compare incoming voltages against is not the same as the ground that the ESP8266 is using to create its output voltage in relation to, then the Arduino really can't know what the voltage is.</p>
<p>You can think of it as a person standing on the ground. Now I am about 6 feet tall. When I am stood up the top of my head is about 6 feet above the ground. But to someone who is stood on a nearby rise in the ground my head is only maybe 3 feet above the ground. Their ground is not the same as my ground.</p>
<p>The second problem, which will become apparent once you have connected the grounds, is that the Arduino measures voltages between 0 and 5V as values between 0 and 1023. However the ESP8266 doesn't operate at 5V, it operates at 3.3V. The highest voltage it can ever put out is 3.3V. The Arduino can never read that as 1023 because it's not 5V.  Instead it will read somewhere around 675. That is, 3.3V is two thirds of 5V, and 675 is two thirds of 1023.</p>
