arduino温湿度蓝牙输出代码报错

家人们,请问是哪里有错呢

img

总报错:In file included from D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\sketch_sep14a.ino:2:0:

D:\Program Files\e5ad98e6a1a3e4bfaee5a48d\Arduino\libraries\DHT_sensor_library/DHT.h:44:15: error: expected unqualified-id before numeric constant

#define DHT11 11 /**< DHT TYPE 11 */

           ^

D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\sketch_sep14a.ino:7:7: note: in expansion of macro 'DHT11'

D:\Program Files\e5ad98e6a1a3e4bfaee5a48d\Arduino\libraries\DHT_sensor_library/DHT.h:44:15: error: expected unqualified-id before numeric constant

#define DHT11 11 /**< DHT TYPE 11 */

           ^

D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\sketch_sep14a.ino:19:1: note: in expansion of macro 'DHT11'

D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\sketch_sep14a.ino: In function 'void loop()':

sketch_sep14a:23: error: request for member 'read' in '11', which is of non-class type 'int'

sketch_sep14a:24: error: request for member 'temperature' in '11', which is of non-class type 'int'

sketch_sep14a:26: error: request for member 'humidity' in '11', which is of non-class type 'int'

In file included from D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\sketch_sep14a.ino:2:0:

D:\Program Files\e5ad98e6a1a3e4bfaee5a48d\Arduino\libraries\DHT_sensor_library/DHT.h:44:15: error: expected unqualified-id before numeric constant

#define DHT11 11 /**< DHT TYPE 11 */

           ^

D:\360MoveData\Users\娴埜鐖竆Desktop\sketch_sep14a\serial.ino:2:7: note: in expansion of macro 'DHT11'

serial:4: error: a function-definition is not allowed here before '{' token

serial:8: error: a function-definition is not allowed here before '{' token

serial:18: error: expected '}' at end of input

exit status 1
request for member 'read' in '11', which is of non-class type 'int'

img


多了一个括号