Sleep and Wake Up Arduino using capacitive Sensor

Hello,Good Day. I would like to do a coding with I attached that I want Arduino sleep when capacitive censor is below 200 and wake up automatically when the capacitive sensor higher then 200 . Can anyone help? And then if there any problem in my coding please help to fix it…

int analogVal;
const int ldrPin = A4;
const int ledPin = 5;
#include <CapacitiveSensor.h>

CapacitiveSensor capSensor_1_2 = CapacitiveSensor(1,2);

void setup()

{
Serial.begin(9600);
pinMode (ledPin, OUTPUT);
}

void loop()
{
long value1=capSensor_1_2.capacitiveSensor(30);

if (value1>200)
analog Val = analogRead (ldrPin) ;
Serial.println (analogVal) ;

if (analogVal<500) digitalWrite (ledPin, HIGH);
else digitalWrite (ledPin, LOW);

Serial.println (value1);

delay (100) ;

}