xcxcx


int i;
int soilsensor = A0; //Soil sensor
int sensorValue = 0;

#define ONE_

Hi,
Sorry but we need lots more information than that to help you.

Tom.... :slight_smile:

Appreciate your attempt to use code tags.

** **[code]** **
your code here
** **[/code]** **
will result in

your code here

One hint. Never ever use short names (like 'i' for global variables; it's a mission to search through code to find where they are used. I personally prefer not to use short names at all. Give 'i' a sensible name like 'cnt' (for counter) or 'index' (for index).

TomGeorge:
Sorry but we need lots more information than that to help you.

..... including, but by no means limited to, a meaningful thread title which you can edit into that post.