Hi, @joonasm Welcome to the forum. To add code please click this link;
What model Arduino are you using?
Tom...