Send tempo from Ableton to Arduino

I'm trying send tempo via MIDI from ableton to arduino.

I'm guessing i need to use MIDI.read() in the MIDI library but I can't seem to find much info about how to use it.

Does anyone know how or have any links to info on how i could do this please?

Thanks

So far I have both the TX and RX pins flashing when I start playback in ableton. However, they are flashing at a much higher rate than the tempo. In fact if i go anything higher than about 50 BPM they begin to flash so fast they just remain constantly on.

Does anybody know how i can convert this frequency into tempo please?

here’s my code: -

#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
MIDI_CREATE_DEFAULT_INSTANCE();

void setup() {
MIDI.begin(1);
} 
void loop() {
MIDI.read(1);
}