I have a circuit to control my doorbell but Voltage on pin is too low

Hi,

const int buttonPin = 2;
const int relayPin = 4 ;

I think you have a problem here.

Your buttonPin is 4
You relayPin is 2

Tom.... :o :o :o