Can NPN replace Relay Module

I think I2C Digipot would be great