Select list item: List index too large help plzz

then how to solve it

i am trying to get reading from arduino via bluetooth kindly solve this issue

Alternatively, try this block:
blocks (83)

Why do you want to split the data ? According to your code there should be 4 things (or words or something) and you split them. All I see is 2 things , in the error.

i dont know much about it .It was working pecfectly with three sensors now i added fourth one it start showing this message

okay what all things are you measuring ? the more deeply you tell better it would be to figure out the problem
Which is the new sensor added ?

PH , turbidity ,temperature and humidity

Show arduino code after adding fourth sensor.

ii added ph sensor now

Problem could be here ...

I won't be able to help in arduino code , sorry :frowning_face:
@powerusers can surely help you out

Also please post your arduino code just like @Patryk_F told

It is possible that in arduino you not added another "|".

ok thaxx......

Paste the arduino code here.

#define dht_apin A0 // Analog Pin sensor is connected to

dht DHT;

void setup() {

Serial.begin(9600);
delay(10000);//Delay to let system boot

delay(10000);//Wait before accessing Sensor
pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT);
}//end "setup()"

void loop() {
//Start of Program

DHT.read11(dht_apin);
int sensorValue = analogRead(A1);// read the input on analog pin 0:
float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
delay(5000);

Serial.print("Current humidity = ");
Serial.print(DHT.humidity);
Serial.print("% ");
Serial.print("temperature = ");
Serial.print(DHT.temperature);
Serial.println("C ");
Serial.print(" TUrbidity ="); // print out the value you read:
Serial.print(voltage);
Serial.println("NTU");

}

this was the code on this it was working perfectly

now with this it gives error
#include <dht.h>

#define dht_apin A0 // Analog Pin sensor is connected to

dht DHT;
#define SensorPin 0 // the pH meter Analog output is connected with the Arduino’s Analog
unsigned long int avgValue; //Store the average value of the sensor feedback
float b;
int buf[10],temp;

void setup()
{
pinMode(13,OUTPUT);

Serial.println("Ready");

Serial.begin(9600);
delay(10000);//Delay to let system boot

delay(10000);//Wait before accessing Sensor
pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT);
}//end "setup()"

void loop() {
//Start of Program

DHT.read11(dht_apin);
int sensorValue = analogRead(A1);// read the input on analog pin 0:
float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
delay(5000);
{
for(int i=0;i<10;i++) //Get 10 sample value from the sensor for smooth the value
{
buf[i]=analogRead(SensorPin);
delay(10);
}
for(int i=0;i<9;i++) //sort the analog from small to large
{
for(int j=i+1;j<10;j++)
{
if(buf[i]>buf[j])
{
temp=buf[i];
buf[i]=buf[j];
buf[j]=temp;
}
}
}
avgValue=0;
for(int i=2;i<8;i++) //take the average value of 6 center sample
avgValue+=buf[i];
float ph=(float)avgValue5.0/1024/6; //convert the analog into millivolt
ph=3.5
ph; //convert the millivolt into pH value

Serial.print(ph,2);
Serial.println(" ");
digitalWrite(13, HIGH);
delay(80000);
digitalWrite(13, LOW);

}

Serial.print("Current humidity = ");
Serial.print(DHT.humidity);
Serial.print("% ");
Serial.print("temperature = ");
Serial.print(DHT.temperature);
Serial.println("C ");
Serial.print(" TUrbidity ="); // print out the value you read:
Serial.print(voltage);
Serial.println("NTU");

}

#include <dht.h>

#define dht_apin A0 // Analog Pin sensor is connected to

dht DHT;
#define SensorPin 0 // the pH meter Analog output is connected with the Arduino’s Analog
unsigned long int avgValue; //Store the average value of the sensor feedback
float b;
int buf[10],temp;

void setup()
{
pinMode(13,OUTPUT);


Serial.begin(9600);
delay(10000);//Delay to let system boot

delay(10000);//Wait before accessing Sensor
pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT);
}//end "setup()"

void loop() {
//Start of Program

DHT.read11(dht_apin);
int sensorValue = analogRead(A1);// read the input on analog pin 0:
float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
delay(5000);
{
for(int i=0;i<10;i++) //Get 10 sample value from the sensor for smooth the value
{
buf[i]=analogRead(SensorPin);
delay(10);
}
for(int i=0;i<9;i++) //sort the analog from small to large
{
for(int j=i+1;j<10;j++)
{
if(buf[i]>buf[j])
{
temp=buf[i];
buf[i]=buf[j];
buf[j]=temp;
}
}
}
avgValue=0;
for(int i=2;i<8;i++) //take the average value of 6 center sample
avgValue+=buf[i];
float ph=(float)avgValue <em>5.0/1024/6; //convert the analog into millivolt
ph=3.5</em> ph; //convert the millivolt into pH value

digitalWrite(13, HIGH);
delay(80000);
digitalWrite(13, LOW);

}

Serial.print("Current humidity = ");
Serial.print(DHT.humidity);
Serial.print("%|");
Serial.print("temperature = ");
Serial.print(DHT.temperature);
Serial.print("C|");
Serial.print(" TUrbidity ="); // print out the value you read:
Serial.print(voltage);
Serial.print("NTU|");
Serial.print("PH=");
Serial.print(ph,2);
Serial.print(" ");
}

I wonder what the "delay (80000);" is doing there?
You pause the program for 80 seconds.

yeah it gives right values i think so

I don't know this library for PH and I don't know what is this value (ph, 2)? Maybe you just need "serial.print (ph);"

i dont know ;(