@Dani123 thankyou!
PFA the zipped folder which contains three different codes that I've tried. Each folder contains two codes, one for each, the master and the slave.
The folders named, '2' and '3' contain codes for lighting up a LED. Although, I haven't made a LED connection in the image of the circuit. The I2C bus connections however remain the same
I'd be obliged if you could help me out with this.
i2c.rar