You didn't say what the sensor is or what the interface
circuit is betweel the microcontroller and sensor.
You also are unclear about the whole 2.5 volt thing:
"My circuit turns an output high when there is a voltage of 2.5V or higher at the analog input i.e when there is a light shining on the sensor."
vs.
"I would like the the sensor to be less sensitive so that it operates only when it senses a voltage of at least 2.5V or higher. "
...which makes it sound like there's already a threshold
level of 2.5V to actuate the response to the sensor.
If it's truly an "analog input" on the microcontroller,
then it may be going into an analog to digital converter,
and you should be able to change (within limits) the
sensitivity of the microcontroller to the input by just
reprogramming a different threshold value of ADC counts
for actuation.
If it's a digital input to the microcontroller that's tied to
an analog signal source, yes, by all means, you should
already be using something like a schmitt trigger between
the amplified / conditioned analog sensor signal and a
digital input bit.
I don't know what the analog sensor signal output
circuitry looks like, or whether it's easy to add circuitry to
your board; you mention adding a schmitt trigger, so I
guess you can add entirely new ICs without difficulty.
Without changing the existing analog output of the
sensor circuit you could add an operational amplifier
configured for non-inverting signal gains of x2, then
take the output of the op-amp and use a two-resistor
voltage divider of e.g.
10kohms series + 10kohms pot wiper to ground to
create an adjustable electrical voltage divider so that
your x2 buffered/amplified sensor input signal is divided
by at least x2 up to xInfinity.
Then you'd take that signal from the junction of
the two-resistor voltage divider, feed it into a
schmitt trigger, and the output of the schmitt trigger into
your microcontroller.
Another probably more desirable (from the sound of your
circuit) option would be to implement an
analog comparator circuit with hysteresis,
logic level compatible output, and
use a comparator IC with a built in voltage reference
(unless you have a handy one in your microcontroller
board) so that the sensor signal level that triggers the
microcontroller input bit is adjustable via the comparator
reference level. You'd use a
fixed resistor and potentiometer to set the reference value
at the other input of the comparator anywhere from
+2.5Vdc or higher/lower if such adjustment benefits
you.,
Here's an article showing comparator designs with
hysteresis added:
http://www.maxim-ic.com/appnotes.cfm/an_pk/3616
The resistor divider between the output and the input
pin and ground gives the hysteresis which has an
effect similar to a schmitt trigger.
Vref would he your 2.5V or other desired reference level
which you could generate from another resistor divider
from a +3.3 or +5 or whatever voltage reference you
have handy and which would be compatible with your
parts voltage levels; again, there are comparators with
built in voltage references if that helps.
Use a comparator with a specified power supply voltage
capability the same as your microcontroller, and power
them from the same power supply feed.
Use a comparator with a relatively fast output rise-time
of under 1 microsecond, and which has its output high
and output low logic levels compatible with your
microcontroller.
Of course if your sensor signal already is a voltage
mode signal which can drive a relatively low output
impedance, you could probably directly use a
two-resistor or resistor<--->pot<---->ground
voltage divider directly on the sensor output signal
you now have, e.g. series resistor of 47kohms, pot of
470kohms to ground, and then you'll have from
0.9x to 0.0x of the present input voltage available on
the pot wiper. Then you'd feed THAT voltage into
a schmitt trigger and that into your uC.
Of course you'd need the
adjusted signal level to be able to exceed the schmitt
trigger's VIH (minimum voltage input high) level,
or the sensor could never trigger the schmitt trigger.
Evidentally it's already over 2.5VDC in magnitude, but
I have no idea what your circuit's logic levels are or
by how much your sensor signal can exceed 2.5V, or
what the sensor signal output impedance is etc...
so it's hard to say what's best.