Servo motor controled by audio

We´re trying to move a model with a servo motor controled by audio. It´s supposed to be moved by the audio signal. we don´t get any movemente in the servo as a response to the sound signal (neither in the serial monitor). We´ve found this link and we are trying to send the audio signal to a 3,5mm audio jack although. We don´t know what´s the problem neither with the code nor installation.

We have changed the programming code to not have a LED:

Make a Servo Move to Sound.
This example code is in the public domain.
2012 by Cenk Özdemir
// for servo stuff we include the servo library
#include <Servo.h>
// creating a servo object
Servo myservo;

// Some Varuables we need
int ServoPin = 9;
int SoundInPin = A0;

// the setup routine runs once when you press reset:
void setup() {
// initialize

pinMode(SoundInPin, INPUT);


// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(SoundInPin);
sensorValue = map(sensorValue,0,512,0,180);
// note normaly the 512 is 1023 becouse of analog reading shud go so far, but i changed that to get better readings.
// setting the servo into standard position
int MoveDelayValue = map(sensorValue,0,255,0,sensorValue);

// maping the same reading a little bit more down to calculate the time your servo gets to make the one Move
if (sensorValue > 33) { // to cut off some static readings only if the reading gets higher then 33 it begings to work
delay(1); // a static delay to smooth things out…
// now move the servo to our mapped reading

} // Done. now we close that part.


Please we´d appreciate a lot to have a quick response

What type of audio source is being used to drive the audio detection circuit? Microphone, line level, output that would normally go to a speaker?

Why are you not printing any values to the serial port? Coding blindly is silly.