This is a sensor from a Fanatec CSL Gas Pedal, it operates with a magnet passing by it. Its housed in a plastic housing next to the magnet on the Pedal shaft.
Hello,
Welcome to the TechForum, this will be very manufacturer specific and hard to cross. This you might want to contact a repair center.
Hello, thanks for the comment. Thought the same but tried my luck. I already called my local repair centre, hopefully they can do something.