Arduino Mega+ethernet shield+relay v2.0

Hi
Im now to use this and program this.
I buy an arduino mega + ethernet shield 2 and 4 relays shield I assemble this and find a sketch to command the relay.
I mod it to use only 3 relay atm my problem is the relay 1 is command with pin 4 that use with ethernet shield … programm work fine to relay 2-4 but the relay 1 is always on if I put on code the commmand to use relay 1 the relay go on loop up and down …

there’s same possibility to fix problem or is an hardware bug ? if possible disable relay 1? attached file fo sketch
Tks

arduino_domotica_con_ethernet_shield_wi_fi.ino (19.9 KB)

pin 4 is only used if SD card is inserted. but some shields have a pull-up on pin 4 which makes the pin HIGH even if it is not used for SD card.

ok tks I disable the relay 1 from list next try to buy a arduiono wifi to fix it

egalizia:
ok tks I disable the relay 1 from list next try to buy a arduiono wifi to fix it

why? you can use other pins. simply skip 4