Please post any code inside the code tags </> - it makes it easier to read and you will get more help.
if (led12 > 0)
{
digitalWrite(led5, HIGH);
}
led12 = 12... so this will always be true... you are just comparing 2 integers.
What I think you want is...
if (digitalRead(led12) > 0)
{
digitalWrite(led5, HIGH);
}