Suggestion for an engine to use Raspberry pi GPIO pins as inputs

Hi!
I’m looking for a 3d engine to animate a simple model (only move and rotate some parts).
I think that I have to use a game engine and I found Armory3D that looks nice.
I want to use the GPIO pins of a Raspberry pi as input, for example when a physic button connected to the Raspberry is pressed, one part of the model have to rotate.

On the Raspberry I can access the pins with a python module like this: https://gpiozero.readthedocs.io/en/stable/
Then I have to send the data from the python script to the 3D engine and use them as inputs somehow.
What engine do you suggest me to do this?
Can I do this with Armory3d?