How to make arduino react to serial.print values?

Hi,

I have found a page where a guy uses arduino to measure voltage. It works well.

The arduino shows the voltage across any battery connected in the serial monitor. So, is there any possible way to read the values of the serial monitor and then make a LED blink at only certain values.

For example i want a LED to blink only if the voltage is 3.75 volts. How do i do that?
I have done the 'if' and'else if' statements and it didnt work for me and i cannot understand whats wrong ( no problem in compiling and uploading the code) since am new to arduino.
Please help.

Thank you

Perhaps if you would be so kind as to show us what you have done so far, someone may be able to help.

Serial.print(stuff);

So, use whatever variable or value is being printed to do things.

if (stuff < 3.75){

};

You're not 'reading the values of the serial monitor'. You're using the values that are already set in variables. The SM is only a display. The data exists, one thing you can do is show it on SM with a deliberate command. You are not somehow coding to say
'If serial monitor shows 3.75, blink led'

INTP:
Serial.print(stuff);

So, use whatever variable or value is being printed to do things.

if (stuff < 3.75){

};

I have tried the same thing but it doesn't work! .. If (stuff == '3.75') .. '3.75' doesnt even turn to blue colour

Due_unto:
Perhaps if you would be so kind as to show us what you have done so far, someone may be able to help.

I am not being able to login into my computer therefore i cannot share the code .. But its the same code as in the link .. Just that in the end i have added
If (voltage == '3.75') {

Else if (voltage =='0') {
DigitalWrite( led , LOW)

(stuff == '3.75')

Even if you meant

(stuff == 3.75)

using == with floats isn't recommended.

it doesn't work

is probably our most-hated phrase here.

AWOL:

(stuff == '3.75')

Even if you meant

(stuff == 3.75)

using == with floats isn't recommended.
is probably our most-hated phrase here.

Thank you very much.
I changed my code to
If ( voltage> 3.75) {

Else if (voltage = 0) {
DigitalWrite (led, LOW)
}