If you do a little search on how connecting the rain sensor to an arduino, you will see that you need to use an analog input. The Mega on the Prusa doesn't use all the analog inputs. You can use A3, A4 or A5. Just check the schematics of your printer to confirm this. Next, you just need to add simple code to read the analog value. It's also very simple and there is already a model for this in theby voltatek - General
Hello! I am the owner of voltatek.ca . Our webstore is specialized in electronics and hardware for makers, 3d printing, CNC, DIY...etc. We ship our products from Canada. Visit us when you got some free time! Our address is : Oliverby voltatek - For Sale
Try those: https://voltatek.ca/linear-bearing/34-lm8uu-8mm-linear-ball-bearing-for-cnc-router-3d-printer.htmlby voltatek - Reprappers