Install the UIFlow 0.7.0 software on your M5Stack.
Start the M5 stack and select with button B (App.List) then M5GO and again with button B (Run) then you select the appearing menu button C (Next) until you see the menu item Extension IR Remote, then connect the sensor and test.
With this program you can test all sensors of the M5Go IOT system.
(I have already told you the instructions for the construction of the sensors where you can find them)
However, you either need the M5Stack from the M5Go IOT set or the M5Stack Fire, since you need the M5Go bottom for the M5Stack that has the connection bars, but should also go with a Basic or Core M5Stack because the connection strips are nothing but the ports Here are the occupancy of the M5Go Bottom: