const int analogPin = A0; // the pin that the input signal is attached to
const int ledCount = 5; // the number of LEDs
const int analogPin2 = A2;
const int ledCount2 = 5;
Do you count things by going "yeah, I got a thing, 2, 3, 4, ...". Of course not, you go "1, 2, 3,...". So, if you are going to number variable names, number ALL of them.
There are no Serial.print() statements in your code. Time to add some.
My code compiles without any errors, however, when I went to test it with the Arduino, both sets of LEDs would light up the same even when there was only one input, regardless of whether it was connected to A0 or A2.
The "even when there is only one input" bothers me. You should not be trying to read an analog pin with nothing connected to it.
for (int thisLed = 0; thisLed < ledCount; thisLed++) {
This statement is too hard to read. The index variable should be a one letter name.
for(int i=0; i<ledCount; i++)
{
}