# Receiving 5 volts as an input, and then sending 5 volts as an Output

**URL:** <https://forum.arduino.cc/t/receiving-5-volts-as-an-input-and-then-sending-5-volts-as-an-output/936707>\
**Category:** Programming\
**Created:** [December 17, 2021, 1:52am UTC](https://forum.arduino.cc/t/receiving-5-volts-as-an-input-and-then-sending-5-volts-as-an-output/936707 "2021-12-17T01:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [December 17, 2021, 4:07am UTC](https://forum.arduino.cc/t/receiving-5-volts-as-an-input-and-then-sending-5-volts-as-an-output/936707/2 "2021-12-17T04:07:11Z")

</div>

> [@daveypoo48](#):
>
> , this will not work.

"will not work" conveys no useful information. The code does something, what does it do?

> [@daveypoo48](#):
>
> if(analogRead(Ipin1 \> 500))

Look at that statement very carefully comparing it to the syntax for [the analogRead() function](https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/) and [the if structure.](https://www.arduino.cc/reference/en/language/structure/control-structure/if/) Note, especially, the **placements of the parenthesis**.

[Read the forum guidelines](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966) to see how to properly post code and some hints on how to get the most from this forum.  
**Use the IDE autoformat tool** (ctrl-t or Tools, Auto format) before posting code in code tags.

---

_[View the full topic](https://forum.arduino.cc/t/receiving-5-volts-as-an-input-and-then-sending-5-volts-as-an-output/936707)._
