Updated Arduino Code with comp power