I needed an riser for the filament sensor because I had installed a dual gear extruder. I had already used the filament guide before and then adapted it for my combination.
For stability, I recommend printing the filament guide/riser on the side as it is already positioned in the .stl. I used tree supports.
The screws that came with the filament sensor are too short due to the riser, which is why I used M3*30 screws.
Use this Gear Pulley -> https://www.thingiverse.com/thing:4841459/files
Filament_Guide_and_Sensor_Riser.stl | 246.1KB |