 }
 
 void loop() {
-  char sum=0, led_red=0, led_green=0, led_blue=0;
+  char sum=0;
+  boolean valueFound = false;
   if (client.available()) {
     
-    if(client.find("neutral\":")){
+    if(client.find("positive\":\""))
+    {
+      valueFound = true;
+      char buf[4];
+      client.readBytes(buf, 3);
+      green=atoi(buf);
+      Serial.println();
+      Serial.print("green: ");
+      Serial.println(green);   
+    }
+
+    if(client.find("negative\":\""))
+    {
+      valueFound = true;
+      char buf[4];
+      client.readBytes(buf, 3);
+      red = atoi(buf);
+      Serial.println();
+      Serial.print("red: ");
+      Serial.println(red);
+    }
+    
+    if(client.find("neutral\":\"")){
+      valueFound = true;
       char buf[4];
       client.readBytes(buf, 3);
       blue = atoi(buf);


  if (client.connect()) {
    Serial.println("connected");
    client.println("GET /api/search.json?topic=fail HTTP/1.0");
    client.println();
    delay(1000);
  } else {
    Serial.println("connection failed");
  }

#define RGB_LED_BluePin 5


Client client("query.yahooapis.com", 80);
byte red = 0, blue= 0, green = 0;
char led_red=0, led_green=0, led_blue=0;

void setup() { 
  Serial.begin(9600);
