updated arduino code + some measurements