Skip to main content
I had may be a bad connection but I can read the sensor AM2320 on arduino-
uno and send the value back to raspberry. 

arduino side
#include am2320
#define SLAVE_ADDRESS 0x04
Wire.begin(SLAVE_ADDRESS);
AM2320 th;
Wire.write( (int)(th.t * 10)); // th.t is for temperature which I send 
integer

Raspberry side
import smbus
bus = smbus.SMBus(1)
address = 0x04
number = bus.read_byte(address)

I had may be a bad connection but I can read the sensor AM2320 on Arduino- Uno and send the value back to Raspberry Pi.

Arduino side:

#include am2320
#define SLAVE_ADDRESS 0x04
Wire.begin(SLAVE_ADDRESS);
AM2320 th;
Wire.write( (int)(th.t * 10)); // th.t is for temperature which I send 
integer

Raspberry piside:

import smbus
bus = smbus.SMBus(1)
address = 0x04
number = bus.read_byte(address)

Raspberry Pi and arduino unoArduino Uno seems to work good together with and I2C sensor on arduinoArduino side. Thanks for you time to help me and I will go to the link you propose.

I had may be a bad connection but I can read the sensor AM2320 on arduino-
uno and send the value back to raspberry. 

arduino side
#include am2320
#define SLAVE_ADDRESS 0x04
Wire.begin(SLAVE_ADDRESS);
AM2320 th;
Wire.write( (int)(th.t * 10)); // th.t is for temperature which I send 
integer

Raspberry side
import smbus
bus = smbus.SMBus(1)
address = 0x04
number = bus.read_byte(address)

Raspberry pi and arduino uno seems to work good together with and I2C sensor on arduino side. Thanks for you time to help me and I will go to the link you propose.

I had may be a bad connection but I can read the sensor AM2320 on Arduino- Uno and send the value back to Raspberry Pi.

Arduino side:

#include am2320
#define SLAVE_ADDRESS 0x04
Wire.begin(SLAVE_ADDRESS);
AM2320 th;
Wire.write( (int)(th.t * 10)); // th.t is for temperature which I send 
integer

Raspberry side:

import smbus
bus = smbus.SMBus(1)
address = 0x04
number = bus.read_byte(address)

Raspberry Pi and Arduino Uno seems to work good together with and I2C sensor on Arduino side. Thanks for you time to help me and I will go to the link you propose.

Source Link

I had may be a bad connection but I can read the sensor AM2320 on arduino-
uno and send the value back to raspberry. 

arduino side
#include am2320
#define SLAVE_ADDRESS 0x04
Wire.begin(SLAVE_ADDRESS);
AM2320 th;
Wire.write( (int)(th.t * 10)); // th.t is for temperature which I send 
integer

Raspberry side
import smbus
bus = smbus.SMBus(1)
address = 0x04
number = bus.read_byte(address)

Raspberry pi and arduino uno seems to work good together with and I2C sensor on arduino side. Thanks for you time to help me and I will go to the link you propose.