Code or Resistor values?

A project log for IOT - ESP8266 Dual Relay Module Controller Shield

Intended for a ESP8266-01 module Using NodeMCU Firmware To control my Solar PV setup DC disconnects remotely

Charles LakinsCharles Lakins 04/07/2016 at 15:440 Comments

So far the change to NPN1 has passed bootup and allows it to connect to my AP ok

I'm not sure if my codes right as the buttons arent doing anything when i turn them on/off , also the NPN2 circuit seems to be always triggering its relay where the NPN1 one wont (code maybe or R6 vaue)