The project is done (Old 49 keys casio) to midi using Arduino MEGA

Just to check can we go back to reply #17 and check that you still get the same results from the code in that post. I think something might have changes.