How to connect them: use wires.
But I think your actual question is "how do I make the boards communicate?" As I see some pins marked I2C on your photo that sounds like the way to go.
How to connect them: use wires.
But I think your actual question is "how do I make the boards communicate?" As I see some pins marked I2C on your photo that sounds like the way to go.