Matomo for IoT monitoring

Hello all,
I’ve been using Matomo on basic web projects, but I’m now on a project where I would like to monitor data transmitted by IoT devices, i.e : the number of people in a room or the number of people who used a door.
I’m not sure how to proceed with the HTTP API (all my data is already redirected to a backend).
I was thinking of either :

  • find a way to register a given amount of visits for a url like /locations/room_1 but I’m not sure this is possible (i.e : register 10 occupants/visitors in room_1 on time T)
  • use events, but I’m not sure how : the idea is to provide an easy way to monitor data over the time

Any idea on how to realize something like this ?

Thanks