First of all, I'm not clear about whether you say now it's working? If not... Okay I need to back up. Have you tried simple sketches that prove that both sensors are working? You said the second one did not, so that is a good place to start. Eliminate the code that processes the sensor data, just echo it somehow, like serial. It sounds like you already tested both LEDs?
I don't know what a footnote line is. Did you try auto-formatting your code to highlight the code blocks? In the lines you've highlighted with a '**', there is an extra '{'. Maybe that has something to do with it.