LED Strip effects + Conductive ink

Im new to using arduino's but ive decided you use one in an art project i am doing. In this project i will connect a pad painted in conductive ink to an arduino, This will act as a proximity sensor. I will also have an LED strip hooked up to the arduino and my goal is to have the strip react to the sensor. To understand how the sensor there is this tutorial (Make A Basic Capacitive Sensor For An Arduino Board With Electric Pain – Bare Conductive) but i still need to know how to make the lights react to the sensor. I would also like some effect ideas. For example the closer your hand gets to the sensor the higher the red levels of the colour or the closer you get the faster the light flashes. -Warrick

What Arduino board are you using?

Im using the arduino uno.

but i still need to know how to make the lights react to the sensor.

OK the cap sens will give you a number which changes depending on how close your hand is. You use that number to switch between LED patterns and effects. You use the if statement to steer your code into the right part. You can use a compound if statement, that is one with two or more tests and join the tests up with a logical AND, which is a && symbol.

So suppose you want to do something if the number from your cap sense is between 300 and 600 you put the cap sense number into a variable, in this case called "cap" and do this:-

if(cap > 300 && cap < 600) {
// here you put the code for the LED effect / pattern you want
}

In this video of one of my projects a sensor detects how far you are away and switches between one of four patterns. I know it is not for the Arduino, and uses an optical sensor not a capacitave one, but the principal is the same:-

Awesome thankyou so much