Photodiodes not sensitiv enough / How to amplify?

Just insert the whole thing as a comment at the start of your code. There are different licenses so you should check out a few... notice that many Arduino libraries use them. Thus there is probably already one or many on your machine.